﻿/*
 * XCoder v3.4.2011.0316
 * 作者：nnhy/X
 * 时间：2011-04-04 11:54:06
 * 版权：版权所有 (C) 新生命开发团队 2010
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using XCode;
using XCode.DataAccessLayer;

namespace NXCMS.CMS
{
	/// <summary>
	/// 图片播放器
	/// </summary>
	[Serializable]
	[DataObject]
	[Description("图片播放器")]
	[BindTable("ImagePlayer", Description = "图片播放器", ConnName = "CMS", DbType = DatabaseType.SqlServer)]
	public partial class ImagePlayer
	{
		#region 属性
		private Int32 _ID;
		/// <summary>
		/// 编号
		/// </summary>
		[Description("编号")]
		[DataObjectField(true, true, false, 10)]
		[BindColumn(1, "ID", "编号", "", "int", 10, 0, false)]
		public Int32 ID
		{
			get { return _ID; }
			set { if (OnPropertyChange("ID", value)) _ID = value; }
		}

		private String _Name;
		/// <summary>
		/// 名称
		/// </summary>
		[Description("名称")]
		[DataObjectField(false, false, false, 100)]
		[BindColumn(2, "Name", "名称", "", "nvarchar(100)", 0, 0, true)]
		public String Name
		{
			get { return _Name; }
			set { if (OnPropertyChange("Name", value)) _Name = value; }
		}

		private String _Code;
		/// <summary>
		/// 代码
		/// </summary>
		[Description("代码")]
		[DataObjectField(false, false, false, 100)]
		[BindColumn(3, "Code", "代码", "", "nvarchar(100)", 0, 0, true)]
		public String Code
		{
			get { return _Code; }
			set { if (OnPropertyChange("Code", value)) _Code = value; }
		}

		private Int32 _SiteID;
		/// <summary>
		/// 站点编号
		/// </summary>
		[Description("站点编号")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(4, "SiteID", "站点编号", "", "int", 10, 0, false)]
		public Int32 SiteID
		{
			get { return _SiteID; }
			set { if (OnPropertyChange("SiteID", value)) _SiteID = value; }
		}

		private Boolean _DisplayType;
		/// <summary>
		/// 显示类型
		/// </summary>
		[Description("显示类型")]
		[DataObjectField(false, false, false, 1)]
		[BindColumn(5, "DisplayType", "显示类型", "", "bit", 0, 0, false)]
		public Boolean DisplayType
		{
			get { return _DisplayType; }
			set { if (OnPropertyChange("DisplayType", value)) _DisplayType = value; }
		}

		private Boolean _ImageSource;
		/// <summary>
		/// 图片源
		/// </summary>
		[Description("图片源")]
		[DataObjectField(false, false, false, 1)]
		[BindColumn(6, "ImageSource", "图片源", "", "bit", 0, 0, false)]
		public Boolean ImageSource
		{
			get { return _ImageSource; }
			set { if (OnPropertyChange("ImageSource", value)) _ImageSource = value; }
		}

		private String _RelaCatalogInnerCode;
		/// <summary>
		/// 关系类别内部代码
		/// </summary>
		[Description("关系类别内部代码")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(7, "RelaCatalogInnerCode", "关系类别内部代码", "", "nvarchar(100)", 0, 0, true)]
		public String RelaCatalogInnerCode
		{
			get { return _RelaCatalogInnerCode; }
			set { if (OnPropertyChange("RelaCatalogInnerCode", value)) _RelaCatalogInnerCode = value; }
		}

		private Int32 _Height;
		/// <summary>
		/// 高度
		/// </summary>
		[Description("高度")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(8, "Height", "高度", "", "int", 10, 0, false)]
		public Int32 Height
		{
			get { return _Height; }
			set { if (OnPropertyChange("Height", value)) _Height = value; }
		}

		private Int32 _Width;
		/// <summary>
		/// 宽度
		/// </summary>
		[Description("宽度")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(9, "Width", "宽度", "", "int", 10, 0, false)]
		public Int32 Width
		{
			get { return _Width; }
			set { if (OnPropertyChange("Width", value)) _Width = value; }
		}

		private Int32 _DisplayCount;
		/// <summary>
		/// 显示数量
		/// </summary>
		[Description("显示数量")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(10, "DisplayCount", "显示数量", "", "int", 10, 0, false)]
		public Int32 DisplayCount
		{
			get { return _DisplayCount; }
			set { if (OnPropertyChange("DisplayCount", value)) _DisplayCount = value; }
		}

		private Boolean _IsShowText;
		/// <summary>
		/// 是否显示文本
		/// </summary>
		[Description("是否显示文本")]
		[DataObjectField(false, false, false, 1)]
		[BindColumn(11, "IsShowText", "是否显示文本", "", "bit", 0, 0, false)]
		public Boolean IsShowText
		{
			get { return _IsShowText; }
			set { if (OnPropertyChange("IsShowText", value)) _IsShowText = value; }
		}

		private String _AddUser;
		/// <summary>
		/// 添加用户
		/// </summary>
		[Description("添加用户")]
		[DataObjectField(false, false, false, 200)]
		[BindColumn(12, "AddUser", "添加用户", "", "nvarchar(200)", 0, 0, true)]
		public String AddUser
		{
			get { return _AddUser; }
			set { if (OnPropertyChange("AddUser", value)) _AddUser = value; }
		}

		private DateTime _AddTime;
		/// <summary>
		/// 添加时间
		/// </summary>
		[Description("添加时间")]
		[DataObjectField(false, false, false, 7)]
		[BindColumn(13, "AddTime", "添加时间", "", "datetime2", 7, 0, false)]
		public DateTime AddTime
		{
			get { return _AddTime; }
			set { if (OnPropertyChange("AddTime", value)) _AddTime = value; }
		}

		private String _ModifyUser;
		/// <summary>
		/// 修改用户
		/// </summary>
		[Description("修改用户")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(14, "ModifyUser", "修改用户", "", "nvarchar(200)", 0, 0, true)]
		public String ModifyUser
		{
			get { return _ModifyUser; }
			set { if (OnPropertyChange("ModifyUser", value)) _ModifyUser = value; }
		}

		private DateTime _ModifyTime;
		/// <summary>
		/// 修改时间
		/// </summary>
		[Description("修改时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(15, "ModifyTime", "修改时间", "", "datetime2", 7, 0, false)]
		public DateTime ModifyTime
		{
			get { return _ModifyTime; }
			set { if (OnPropertyChange("ModifyTime", value)) _ModifyTime = value; }
		}

		private String _BackupNo;
		/// <summary>
		/// 备份编号
		/// </summary>
		[Description("备份编号")]
		[DataObjectField(false, false, true, 15)]
		[BindColumn(16, "BackupNo", "备份编号", "", "nvarchar(15)", 0, 0, true)]
		public String BackupNo
		{
			get { return _BackupNo; }
			set { if (OnPropertyChange("BackupNo", value)) _BackupNo = value; }
		}

		private String _BackupOperator;
		/// <summary>
		/// 备份操作者
		/// </summary>
		[Description("备份操作者")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(17, "BackupOperator", "备份操作者", "", "nvarchar(200)", 0, 0, true)]
		public String BackupOperator
		{
			get { return _BackupOperator; }
			set { if (OnPropertyChange("BackupOperator", value)) _BackupOperator = value; }
		}

		private DateTime _BackupTime;
		/// <summary>
		/// 备份时间
		/// </summary>
		[Description("备份时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(18, "BackupTime", "备份时间", "", "datetime2", 7, 0, false)]
		public DateTime BackupTime
		{
			get { return _BackupTime; }
			set { if (OnPropertyChange("BackupTime", value)) _BackupTime = value; }
		}

		private String _BackupMemo;
		/// <summary>
		/// 备份注释
		/// </summary>
		[Description("备份注释")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(19, "BackupMemo", "备份注释", "", "nvarchar(50)", 0, 0, true)]
		public String BackupMemo
		{
			get { return _BackupMemo; }
			set { if (OnPropertyChange("BackupMemo", value)) _BackupMemo = value; }
		}
		#endregion

		#region 获取/设置 字段值
		/// <summary>
		/// 获取/设置 字段值。
		/// 一个索引，基类使用反射实现。
		/// 派生实体类可重写该索引，以避免反射带来的性能损耗
		/// </summary>
		/// <param name="name">字段名</param>
		/// <returns></returns>
		public override Object this[String name]
		{
			get
			{
				switch (name)
				{
					case "ID" : return _ID;
					case "Name" : return _Name;
					case "Code" : return _Code;
					case "SiteID" : return _SiteID;
					case "DisplayType" : return _DisplayType;
					case "ImageSource" : return _ImageSource;
					case "RelaCatalogInnerCode" : return _RelaCatalogInnerCode;
					case "Height" : return _Height;
					case "Width" : return _Width;
					case "DisplayCount" : return _DisplayCount;
					case "IsShowText" : return _IsShowText;
					case "AddUser" : return _AddUser;
					case "AddTime" : return _AddTime;
					case "ModifyUser" : return _ModifyUser;
					case "ModifyTime" : return _ModifyTime;
					case "BackupNo" : return _BackupNo;
					case "BackupOperator" : return _BackupOperator;
					case "BackupTime" : return _BackupTime;
					case "BackupMemo" : return _BackupMemo;
					default: return base[name];
				}
			}
			set
			{
				switch (name)
				{
					case "ID" : _ID = Convert.ToInt32(value); break;
					case "Name" : _Name = Convert.ToString(value); break;
					case "Code" : _Code = Convert.ToString(value); break;
					case "SiteID" : _SiteID = Convert.ToInt32(value); break;
					case "DisplayType" : _DisplayType = Convert.ToBoolean(value); break;
					case "ImageSource" : _ImageSource = Convert.ToBoolean(value); break;
					case "RelaCatalogInnerCode" : _RelaCatalogInnerCode = Convert.ToString(value); break;
					case "Height" : _Height = Convert.ToInt32(value); break;
					case "Width" : _Width = Convert.ToInt32(value); break;
					case "DisplayCount" : _DisplayCount = Convert.ToInt32(value); break;
					case "IsShowText" : _IsShowText = Convert.ToBoolean(value); break;
					case "AddUser" : _AddUser = Convert.ToString(value); break;
					case "AddTime" : _AddTime = Convert.ToDateTime(value); break;
					case "ModifyUser" : _ModifyUser = Convert.ToString(value); break;
					case "ModifyTime" : _ModifyTime = Convert.ToDateTime(value); break;
					case "BackupNo" : _BackupNo = Convert.ToString(value); break;
					case "BackupOperator" : _BackupOperator = Convert.ToString(value); break;
					case "BackupTime" : _BackupTime = Convert.ToDateTime(value); break;
					case "BackupMemo" : _BackupMemo = Convert.ToString(value); break;
					default: base[name] = value; break;
				}
			}
		}
		#endregion

		#region 字段名
		/// <summary>
		/// 取得图片播放器字段名的快捷方式
		/// </summary>
		public class _
		{
			///<summary>
			/// 编号
			///</summary>
			public const String ID = "ID";

			///<summary>
			/// 名称
			///</summary>
			public const String Name = "Name";

			///<summary>
			/// 代码
			///</summary>
			public const String Code = "Code";

			///<summary>
			/// 站点编号
			///</summary>
			public const String SiteID = "SiteID";

			///<summary>
			/// 显示类型
			///</summary>
			public const String DisplayType = "DisplayType";

			///<summary>
			/// 图片源
			///</summary>
			public const String ImageSource = "ImageSource";

			///<summary>
			/// 关系类别内部代码
			///</summary>
			public const String RelaCatalogInnerCode = "RelaCatalogInnerCode";

			///<summary>
			/// 高度
			///</summary>
			public const String Height = "Height";

			///<summary>
			/// 宽度
			///</summary>
			public const String Width = "Width";

			///<summary>
			/// 显示数量
			///</summary>
			public const String DisplayCount = "DisplayCount";

			///<summary>
			/// 是否显示文本
			///</summary>
			public const String IsShowText = "IsShowText";

			///<summary>
			/// 添加用户
			///</summary>
			public const String AddUser = "AddUser";

			///<summary>
			/// 添加时间
			///</summary>
			public const String AddTime = "AddTime";

			///<summary>
			/// 修改用户
			///</summary>
			public const String ModifyUser = "ModifyUser";

			///<summary>
			/// 修改时间
			///</summary>
			public const String ModifyTime = "ModifyTime";

			///<summary>
			/// 备份编号
			///</summary>
			public const String BackupNo = "BackupNo";

			///<summary>
			/// 备份操作者
			///</summary>
			public const String BackupOperator = "BackupOperator";

			///<summary>
			/// 备份时间
			///</summary>
			public const String BackupTime = "BackupTime";

			///<summary>
			/// 备份注释
			///</summary>
			public const String BackupMemo = "BackupMemo";
		}
		#endregion
	}
}